package net.ericaro.neojavagen.blocks;

/**
 * <b>TryCatchStatement</b> ::= "try" <{@link net .ericaro .neojavagen .blocks .Block Block}> <{@link net .ericaro .neojavagen .blocks .Catches Catches}>
 * 
 * @author eric@ericaro.net
 */
public class TryCatchStatement extends net.ericaro.neojavagen.JavaPartComposition {
	private net.ericaro.neojavagen.blocks.Block block;

	private net.ericaro.neojavagen.blocks.Catches catches;

	public TryCatchStatement(net.ericaro.neojavagen.blocks.Block block, net.ericaro.neojavagen.blocks.Catches catches) {
		super();
		this.block = block;
		this.catches = catches;
	}

	public net.ericaro.neojavagen.blocks.Block getBlock() {
		return block;
	}

	public net.ericaro.neojavagen.blocks.Catches getCatches() {
		return catches;
	}

	public void setBlock(net.ericaro.neojavagen.blocks.Block block) {
		this.block = block;
	}

	public void setCatches(net.ericaro.neojavagen.blocks.Catches catches) {
		this.catches = catches;
	}

	@Override
	public java.lang.String toString() {
		return print("try", block, catches);
	}
}
